#!/bin/bash

# https://www.kpromise.top/run-wechat-in-linux/

docker run -d --name thunderspeed --device /dev/snd \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v "$HOME/.thunderspeed:/home/thunderspeed/.thunderspeed" \
    -v "$HOME/Downloads:/迅雷下载" \
    -e DISPLAY=unix$DISPLAY \
    -e XMODIFIERS=@im=ibus \
    -e QT_IM_MODULE=ibus \
    -e GTK_IM_MODULE=ibus \
    -e AUDIO_GID=`getent group audio | cut -d: -f3` \
    -e GID=`id -g` \
    -e UID=`id -u` \
    bestwu/thunderspeed
    